package com.library.dao;

import com.library.po.Admin;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface AdminMapper {
    int insertSelective(Admin record);

    //根据id查询管理员
    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    //查询所有管理员
    List<Admin> queryAdminInfoAll(Admin admin);

    //根据用户名和密码查询管理员
    Admin queryUserByNameAndPassword(@Param("username") String username,@Param("password") String password);
}